package org.jeecg.modules.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.shop.entity.*;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 商品管理
 * @Author: jeecg-boot
 * @Date:   2020-08-07
 * @Version: V1.0
 */
public interface IRsProductService extends IService<RsProduct> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(RsProduct rsProduct, List<RsProductSize> rsProductSizeList, List<RsShopBargain> rsShopBargainList, List<RsShopImage> rsShopImageList, List<RsShopComment> rsShopCommentList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(RsProduct rsProduct, List<RsProductSize> rsProductSizeList, List<RsShopBargain> rsShopBargainList, List<RsShopImage> rsShopImageList, List<RsShopComment> rsShopCommentList);
	
	/**
	 * 删除一对多
	 */
	public void delMain(String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain(Collection<? extends Serializable> idList);
	
}
